package qunar;

import com.alibaba.fastjson.JSONObject;

import java.util.ArrayList;
import java.util.List;

public class ZhibanTest {

    static class Demo {
        String orderNo;
        String username;

        public Demo(String orderNo, String username) {
            this.orderNo = orderNo;
            this.username = username;
        }

        public String getOrderNo() {
            return orderNo.trim();
        }

        public String getUsername() {
            return username.trim();
        }
    }

    public static void main(String[] args) {
        List<Demo> demoList = new ArrayList<>();
//        demoList.add(new Demo("     582808249560", "	yxfpuwu7311             "));
//        demoList.add(new Demo("     582808468059", "	fttxucg2582             "));
//        demoList.add(new Demo("     582808376002", "	occpdvk6461             "));
//        demoList.add(new Demo("     582808397568", "	vkpailj3109             "));
//        demoList.add(new Demo("     582808043462", "	vvdzrxo3471             "));
        demoList.add(new Demo("     582807576634", "	tcgwpsk4229             "));
        demoList.add(new Demo("     582807865795", "	upadubj8870             "));
        demoList.add(new Demo("     582807185464", "	593976691               "));
        demoList.add(new Demo("     582807759519", "	zqjberc5751             "));
        demoList.add(new Demo("     582807260759", "	odcd4899                "));
        demoList.add(new Demo("     582807781470", "	lzkhods8765             "));
        demoList.add(new Demo("     582807395733", "	aloq3697                "));
        demoList.add(new Demo("     582807156505", "	Yan725                  "));
        demoList.add(new Demo("     582807940563", "	yecnfur4485             "));
        demoList.add(new Demo("     582807585309", "	jjsatgw4832             "));
        demoList.add(new Demo("     582807072428", "	oyby5590                "));
        demoList.add(new Demo("     582806919757", "	pqzy0790                "));
        demoList.add(new Demo("     582806554248", "	qzjsuda4146             "));
        demoList.add(new Demo("     582806460117", "	maoshanhua              "));
        demoList.add(new Demo("     582806759029", "	RODON                   "));
        demoList.add(new Demo("     582806188010", "	bzdb8964                "));
        demoList.add(new Demo("     582806526923", "	qnmvadp0651             "));
        demoList.add(new Demo("     582806160726", "	xinrui0316              "));
        demoList.add(new Demo("     582806339236", "	ayan11                  "));
        demoList.add(new Demo("     582806766381", "	yrdu2814                "));
        demoList.add(new Demo("     582806326292", "	fsdd3182                "));
        demoList.add(new Demo("     582806657796", "	shifei0722              "));
        demoList.add(new Demo("     582806657847", "	hnwiefl4360             "));
        demoList.add(new Demo("     582806542428", "	cfjnmrh9227             "));
        demoList.add(new Demo("     582806001861", "	qavgexr1278             "));
        demoList.add(new Demo("     582806454121", "	etarein0652             "));
        demoList.add(new Demo("     582805893964", "	liyuanke56608292        "));
        demoList.add(new Demo("     582805559458", "	swav2702                "));
        demoList.add(new Demo("     582805067390", "	urvzpro8548             "));
        demoList.add(new Demo("     582805568018", "	dontysv2423             "));
        demoList.add(new Demo("     582805499788", "	ffijbih8037             "));
        demoList.add(new Demo("     582805092429", "	wdvbvxc7732             "));
        demoList.add(new Demo("     582805878200", "	pydbfoj0537             "));
        demoList.add(new Demo("     582805087681", "	kogipnl5043             "));
        demoList.add(new Demo("     582805478354", "	plbxsol0723             "));
        demoList.add(new Demo("     582805727966", "	bjea3118                "));
        demoList.add(new Demo("     582805922562", "	zuole77                 "));
        demoList.add(new Demo("     582805435037", "	avsn1951                "));
        demoList.add(new Demo("     582805922063", "	pvgpuzg5165             "));
        demoList.add(new Demo("     582805046477", "	hedtlnt5243             "));
        demoList.add(new Demo("     582805651886", "	fvhubrw4777             "));
        demoList.add(new Demo("     582805019575", "	dmzevcj9377             "));
        demoList.add(new Demo("     582805139019", "	jinyinghao              "));
        demoList.add(new Demo("     582805305536", "	iyaawed2880             "));
        demoList.add(new Demo("     582805208650", "	ezbacos7879             "));
        demoList.add(new Demo("     582805634122", "	obqy5555                "));
        demoList.add(new Demo("     582805380943", "	able6815                "));
        demoList.add(new Demo("     582804072603", "	nqjwpxs3223             "));
        demoList.add(new Demo("     582804165005", "	slff3727                "));
        demoList.add(new Demo("     582804650712", "	qkyxweg4778             "));
        demoList.add(new Demo("     582804846234", "	itfoxyt2166             "));
        demoList.add(new Demo("     582804861137", "	qunar_lbs_828888085     "));
        demoList.add(new Demo("     582804838682", "	lovelinjie1986918       "));
        demoList.add(new Demo("     582804074406", "	sufg2129                "));
        demoList.add(new Demo("     582804923761", "	pzbotuw6405             "));
        demoList.add(new Demo("     582804020274", "	atdzjyo1371             "));
        demoList.add(new Demo("     582804147431", "	uatmnta7209             "));
        demoList.add(new Demo("     582804070833", "	hdnf2349                "));
        demoList.add(new Demo("     582804180980", "	stfbkbk1993             "));
        demoList.add(new Demo("     582804339349", "	hcuqhdj8199             "));
        demoList.add(new Demo("     582804723487", "	yohiwlj2949             "));
        demoList.add(new Demo("     582804975615", "	kmnrpls2594             "));
        demoList.add(new Demo("     582804077108", "	wldy1929                "));
        demoList.add(new Demo("     582804180203", "	xjdjvsa1912             "));
        demoList.add(new Demo("     582804848337", "	hteh7415                "));
        demoList.add(new Demo("     582804262196", "	ptbydqs9195             "));
        demoList.add(new Demo("     582804948733", "	emaf7850                "));
        demoList.add(new Demo("     582804977490", "	aelvqog8182             "));
        demoList.add(new Demo("     582804164844", "	mmoomyg2454             "));
        demoList.add(new Demo("     582804779676", "	uytkips6326             "));
        demoList.add(new Demo("     582804473094", "	sbotdgx9955             "));
        demoList.add(new Demo("     582803450052", "	xvepcae1593             "));
        demoList.add(new Demo("     582803051698", "	wxaa8085                "));
        demoList.add(new Demo("     582803600684", "	kanfqdy5517             "));
        demoList.add(new Demo("     582803181082", "	knzxakd7452             "));
        demoList.add(new Demo("     582803746687", "	whrsunq6845             "));
        demoList.add(new Demo("     582803846260", "	vtqxlla5884             "));
        demoList.add(new Demo("     582803088514", "	zvaungc7847             "));
        demoList.add(new Demo("     582803044639", "	liuwei1985              "));
        demoList.add(new Demo("     582803118062", "	zhaoxuan11              "));
        demoList.add(new Demo("     582803769134", "	alrannh3601             "));
        demoList.add(new Demo("     582803008525", "	bryjwnf0639             "));
        demoList.add(new Demo("     582803992212", "	snvcbkc5030             "));
        demoList.add(new Demo("     582803761591", "	nefcxyv2379             "));
        demoList.add(new Demo("     582803858775", "	zocxzz                  "));
        demoList.add(new Demo("     582803331791", "	ZZJN                    "));
        demoList.add(new Demo("     582803481651", "	zvjy4435                "));
        demoList.add(new Demo("     582803988501", "	raegblv3519             "));
        demoList.add(new Demo("     582803302498", "	daduvhq8673             "));
        demoList.add(new Demo("     582803958526", "	kkyangt                 "));
        demoList.add(new Demo("     582803863709", "	xsrreuv8830             "));
        demoList.add(new Demo("     582803368212", "	dqou7557                "));
        demoList.add(new Demo("     582803868213", "	ugivknn9565             "));
        demoList.add(new Demo("     582803759796", "	qdubcny6706             "));
        demoList.add(new Demo("     582803808081", "	pyhgrcd0418             "));
        demoList.add(new Demo("     582803289242", "	ksrlesc8241             "));
        demoList.add(new Demo("     582803671906", "	fvbnrqt1883             "));
        demoList.add(new Demo("     582803525894", "	nqpuuqc6059             "));
        demoList.add(new Demo("     582803624754", "	bswq7115                "));
        demoList.add(new Demo("     582803008253", "	dtbxwxb4517             "));
        demoList.add(new Demo("     582803101688", "	ejgp5773                "));
        demoList.add(new Demo("     582799048394", "	yzfkcqz4335             "));
        demoList.add(new Demo("     582799908430", "	htjeyoy7313             "));
        demoList.add(new Demo("     582798606538", "	azgswha5333             "));
        demoList.add(new Demo("     582798660679", "	azgswha5333             "));
        demoList.add(new Demo("     582798485634", "	nefcxyv2379             "));
        demoList.add(new Demo("     582798299686 ", "	htjeyoy7313             "));
        demoList.add(new Demo("     582804721850 ", "	sptrxuh5345             "));
        demoList.add(new Demo("     582808555009 ", "	yuanqian425             "));
        demoList.add(new Demo("     582806026100 ", "	ynznbvo5189             "));
        demoList.add(new Demo("     582805711438 ", "	lhcheml9459             "));
        demoList.add(new Demo("     582805852962 ", "	yaijqni7188             "));
        demoList.add(new Demo("     582804360193 ", "	mawtobg9694             "));

        List<Demo> tmpList = new ArrayList<>();
        int count=0;
        for (Demo demo : demoList) {
            try {
//                String url = "http://l-akihabara1.f.cn1.qunar.com:8080/test/reset/confirmMoney?username=" + demo.getUsername() + "&orderNo=" + demo.getOrderNo();
//                System.out.println(url);
//                String s = HttpUtil.get(url);
//                JSONObject jsonObject = JSONObject.parseObject(s);
//                Boolean ret = jsonObject.getBoolean("ret");
//                if(ret==true){
//                    count++;
//                }
            } catch (Exception e) {
                tmpList.add(new Demo(demo.getOrderNo(), demo.getUsername()));
                e.printStackTrace();
            }
        }
        System.out.println("成功：" + count);
        System.out.println("失败" + JSONObject.toJSONString(tmpList));
    }
}
